package cn.oyzh.easyshell.domain;

import cn.oyzh.ssh.domain.SSHProxyConfig;
import cn.oyzh.store.jdbc.Column;
import cn.oyzh.store.jdbc.PrimaryKey;
import cn.oyzh.store.jdbc.Table;

/**
 * shell代理配置
 *
 * @author oyzh
 * @since 2025-04-14
 */
@Table("t_proxy")
public class ShellProxyConfig extends SSHProxyConfig {

    /**
     * 所属连接id
     */
    @Column
    private String iid;

    /**
     * 数据id
     */
    @Column
    @PrimaryKey
    private String id;

    public String getIid() {
        return iid;
    }

    public void setIid(String iid) {
        this.iid = iid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public static ShellProxyConfig clone(ShellProxyConfig config) {
        if (config == null) {
            return null;
        }
        ShellProxyConfig proxyConfig = new ShellProxyConfig();
        proxyConfig.copy(config);
        return proxyConfig;
    }
}
